<%--
  Created by IntelliJ IDEA.
  Author: WaveHi
  Contact: HJBWaveHi@163.com
  Date: 19/9/2021
  Time: 下午 3:40
  Description: 
  Version: 1.0
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>user_login</title>
    <%
        String basePath = request.getScheme() +
        "://" + request.getServerName() +
        ":" + request.getServerPort() +
        "/" + request.getContextPath() + "/";
        pageContext.setAttribute("basePath", basePath);
    %>
    <base href="${pageScope.basePath}"}/>
</head>
<body>
    <div class="user-login-header">
        <h3>Please write your username and password</h3>
        <span class="user-login-errorMsg">${requestScope.errorMsg}</span>
    </div>
    <div class="user-login-body">
        <form id="user-login-form" class="user-login-form" action="userServlet?action=login" method="post">
            <input type="text" name="username" placeholder="Your username"/>
            <input type="password" name="password" placeholder="Your password"/>
            <button class="login" type="submit" form="user-login-form">login</button>
            <span class="register-msg">There is no account?</span><a href="page/user/user_register.jsp">register</a>
        </form>
    </div>
</body>
</html>
